package cn.oveay.classdesign.service.impl;

import cn.oveay.classdesign.bean.basebean.Option;
import cn.oveay.classdesign.dao.OptionDao;
import cn.oveay.classdesign.dao.impl.OptionDaoImpl;
import cn.oveay.classdesign.service.OptionService;

import java.util.List;

public class OptionServiceImpl implements OptionService {
    private OptionDao optionDao = new OptionDaoImpl();

    @Override
    public List<Option> findAll() {
        return optionDao.findAll();
    }

    @Override
    public List<Option> findBySubjectID(String subjectID) {
        return optionDao.findBySubjectID(subjectID);
    }

    @Override
    public void inseart(Option option) {
        optionDao.inseart(option);
    }
}
